
package com.market.web.action;

import java.util.Date;

import com.market.bean.Orders;

public class AdminOrProsessAction extends AdminOrdersAction
{
    private long id;
    private String processer;
    public String execute() throws Exception
    {
        //DynaActionForm orf = (DynaActionForm)form;
        long id = 0;
        id = getId();
        Orders or = getOrdersService().findById(id);
        or.setProcessor(getProcesser());
        or.setIsprocessed(true);
        or.setExprdate(new Date());
        getOrdersService().saveOrUpdate(or);
        //ActionForward f = new ActionForward("/adminOrView.do?id=" + id);
        return SUCCESS;
    }
    public long getId()
    {
        return id;
    }
    public void setId(long id)
    {
        this.id = id;
    }
    public String getProcesser()
    {
        return processer;
    }
    public void setProcesser(String processer)
    {
        this.processer = processer;
    }
}
